﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<title>jQEditor</title>
<link rel="stylesheet" type="text/css" href="./skins/skin_base.css" />
<link rel="stylesheet" type="text/css" href="./skins/mce.css" />
<style>
.hidden{display:none;}
.jqeditor {width:700px;}
#autoTestControl{}
#autoTestControl label{display:inline-block;line-height:30px;margin-left:10px;width:120px;}
</style>
</head>

<body>
<div style="width:800px;margin:auto;">
<div style="height:150px;" id="autoTestControl"></div>
<h3>jQEditor</h3>
<form onsubmit="return false;">

<div id="demo" class="jqeditor">
	<div style="height:32px;">
		<div class="jqe-toolbar"></div>
	</div>
	<div class="jqe-content"></div>
</div>

<textarea name="content" id="content" class="hidden">

</textarea>
<br />
<input type="button" value=" 提 交 " onclick="check(this);"/>
</form>

</div>

<script src="./lib/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="./lib/swfupload.js" type="text/javascript"></script>
<script src="./src/core.js"></script>
<script src="./src/config.js"></script>
<script src="./src/icons.js"></script>
<script src="./src/lang/zh-cn.js"></script>
<script src="./src/mod/mod.toolbar.js"></script>
<script src="./src/mod/mod.message.js"></script>
<script src="./src/mod/mod.panel.js"></script>
<script src="./src/mod/mod.selection.js"></script>
<script src="./src/mod/mod.menu.js"></script>
<script src="./src/mod/mod.event.js"></script>
<script src="./src/mod/mod.utils.js"></script>
<script src="./src/mod/mod.history.js"></script>
<script src="./src/mod/mod.confirm.js"></script>

<script src="./src/plugin/plugin.color.js"></script>
<script src="./src/plugin/plugin.image.js"></script>
<script src="./src/plugin/plugin.multiimage.js"></script>
<script src="./src/plugin/plugin.link.js"></script>
<script src="./src/plugin/plugin.table.js"></script>
<script src="./src/plugin/plugin.source.js"></script>
<script src="./src/plugin/plugin.pastetext.js"></script>
<script src="./src/plugin/plugin.pasteword.js"></script>
<script src="./src/plugin/plugin.help.js"></script>
<script src="./src/plugin/plugin.history.js"></script>
<script src="./src/plugin/plugin.menus.js"></script>
<script src="./src/plugin/plugin.resize.js"></script>
<script src="./src/plugin/plugin.fixedtoolbar.js"></script>
<script src="./src/plugin/plugin.baikelink.js"></script>
<script src="./src/plugin/plugin.title.js"></script>
<script src="./src/plugin/plugin.search.js"></script>
<script src="./src/plugin/plugin.shortcut-menu.js"></script>
<script src="./src/plugin/plugin.cleanup.js"></script>
<script src="./src/plugin/plugin.fontsize.js"></script>
<script src="./src/plugin/plugin.fontname.js"></script>
<script src="./src/plugin/plugin.bold.js"></script>
<script src="./src/plugin/plugin.video.js"></script>
<script src="./src/plugin/plugin.specialchar.js"></script>
<script src="./src/plugin/plugin.preview.js"></script>
<script src="./src/plugin/plugin.justifyleft.js"></script>
<script src="./src/plugin/plugin.code.js"></script>
<script src="./src/plugin/plugin.hdimage.js"></script>
<script src="./src/plugin/filter.default.js"></script>
<script src="./src/plugin/filter.xhtml.js"></script>
<script src="./src/plugin/filter.baike.js"></script>
<script src="./src/plugin/event.shortcutkeys.js"></script>
<script src="./src/plugin/event.disable-plugin.js"></script>
<script src="./src/plugin/event.paste.js"></script>
<script src="./src/plugin/event.ajax-upload.js"></script>
<script src="./src/plugin/event.append-p.js"></script>
<script src="./src/plugin/event.enterkey.js"></script>
<script src="./src/plugin/plugin.upload-remote-image.js"></script>

<script src="./autotest/test.js"></script>
<script src="./autotest/test.config.js"></script>
<script src="./autotest/test.pasteText.js"></script>
<script src="./autotest/test.pasteWord.js"></script>
<script src="./autotest/test.fontsize.js"></script>
<script src="./autotest/test.bold.js"></script>
<script src="./autotest/test.color.js"></script>
<script src="./autotest/test.justifyLeft.js"></script>
<script src="./autotest/test.title.js"></script>
<script src="./autotest/test.baikelink.js"></script>
<script src="./autotest/test.link.js"></script>
<script src="./autotest/test.hdimage.js"></script>
<script src="./autotest/test.multiimage.js"></script>
<script src="./autotest/test.video.js"></script>
<script src="./autotest/test.table.js"></script>
<script src="./autotest/test.specialchar.js"></script>
<script src="./autotest/test.code.js"></script>
<script src="./autotest/test.source.js"></script>
<script src="./autotest/test.help.js"></script>
<script src="./autotest/test.preview.js"></script>
<script src="./autotest/test.end.js"></script>
<script>
function check(form){
	var content = jQEditor.getSubmitHtml('demo');
	alert(content);
	return false;
}

$(document).ready(function(){
	$.editor({
		id: 'demo',
		contentId: 'content',
		toolbar: 'baike.com'
	});
});
</script>
</body>
</html>
